package com.ioudi.digu.flex.config.xml;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.springframework.flex.config.xml.RemotingDestinationBeanDefinitionDecorator;
import org.springframework.flex.config.xml.RemotingDestinationBeanDefinitionParser;

public class FlexNamespaceHandler extends NamespaceHandlerSupport 
{
	 public void init() {
	        registerBeanDefinitionParser("message-broker", new MsgBrokerBeanDefinitionParser());
	        registerBeanDefinitionParser("remoting-destination", new RemotingDestinationBeanDefinitionParser());
	        registerBeanDefinitionParser("message-destination", new MessageDestinationBeanDefinitionParser());
	        registerBeanDefinitionParser("jms-message-destination", new JmsMessageDestinationBeanDefinitionParser());
	        registerBeanDefinitionParser("integration-message-destination", new IntegrationMessageDestinationBeanDefinitionParser());
	        registerBeanDefinitionDecorator("remoting-destination", new RemotingDestinationBeanDefinitionDecorator());
	    }
}
